package com.dx.common.table.ppt;

/**
 * Spc_ret_tool_relateId entity. @author MyEclipse Persistence Tools
 */

public class Spc_ret_tool_relateId implements java.io.Serializable {

	// Fields

	private String prd_seq_id_fk;
	private String up_load_id_fk;

	// Constructors

	/** default constructor */
	public Spc_ret_tool_relateId() {
	}

	/** full constructor */
	public Spc_ret_tool_relateId(String prd_seq_id_fk, String up_load_id_fk) {
		this.prd_seq_id_fk = prd_seq_id_fk;
		this.up_load_id_fk = up_load_id_fk;
	}

	// Property accessors

	public String getPrd_seq_id_fk() {
		return this.prd_seq_id_fk;
	}

	public void setPrd_seq_id_fk(String prd_seq_id_fk) {
		this.prd_seq_id_fk = prd_seq_id_fk;
	}

	public String getUp_load_id_fk() {
		return this.up_load_id_fk;
	}

	public void setUp_load_id_fk(String up_load_id_fk) {
		this.up_load_id_fk = up_load_id_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Spc_ret_tool_relateId))
			return false;
		Spc_ret_tool_relateId castOther = (Spc_ret_tool_relateId) other;

		return ((this.getPrd_seq_id_fk() == castOther.getPrd_seq_id_fk()) || (this
				.getPrd_seq_id_fk() != null
				&& castOther.getPrd_seq_id_fk() != null && this
				.getPrd_seq_id_fk().equals(castOther.getPrd_seq_id_fk())))
				&& ((this.getUp_load_id_fk() == castOther.getUp_load_id_fk()) || (this
						.getUp_load_id_fk() != null
						&& castOther.getUp_load_id_fk() != null && this
						.getUp_load_id_fk()
						.equals(castOther.getUp_load_id_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getPrd_seq_id_fk() == null ? 0 : this.getPrd_seq_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getUp_load_id_fk() == null ? 0 : this.getUp_load_id_fk()
						.hashCode());
		return result;
	}

}